package com.lottery.material.service.portal.banner.impl;

import com.lottery.material.dao.banner.BannerConfMapper;
import com.lottery.material.service.portal.banner.BannerConfService;
import com.lottery.material.vo.portal.banner.BannerVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:    banner配置服务实现类
 * Author:         sunny
 * CreateDate:     2019-04-18 19:38
 */
@Service
public class BannerConfServiceImpl implements BannerConfService {

    @Autowired
    private BannerConfMapper bannerConfMapper;

    /**
     * description: 根据菜单编号查询banner
     * author sunny
     * createDate 2019-04-18 下午 7:39
     * @param menuCode
     * @return
     */
    @Override
    public List<BannerVo> findBannerVoByMenuCode(String menuCode) {
        return bannerConfMapper.findBannerVoByMenuCode(menuCode);
    }
}
